import Vue from 'vue'
Vue.directive('err', {
  inserted(el, binding) {
    el.onerror = function() {
      console.log('心态炸了')
      this.src = binding.value
    }
  }
})
